/*
  封装请求的接口函数
*/
import axios from "axios";
const request = axios.create({
  baseURL: "/list", // /就是当前服务器地址（代理服务器）
  timeout: 10000,
});

// 获取标签列表
/* export const reqGetSearchLabelList = () =>
  request({
    // method: "",
    // url: "",
  }) */

export const reqGetProvice = ()=>
request({
  methods:'GET',
  url:'/city'
})

export const reqGetBannerVia = () =>
  request({
    method: "GET",
    url: "/bannerVia",
  });
// 获取标签列表
export const reqGetSearchLabelList = () =>
  request({
    method: "GET",
    url: `/searchLabel`
  });

// 点击标签后获取具体数据
export const reqGetConditionList = (index) =>
  request({
    method: "GET",
    url: `/condition/${index}`,
  });

// 搜索条件女
export const reqGetScreenWomen = () =>
  request({
    method: "GET",
    url: `/screenSearchWomen`,
  });

// 搜索条件男
export const reqGetScreenMan = () =>
  request({
    method: "GET",
    url: `/screenSearchMan`,
  });

// 点击标签后获取具体数据
/* export const reqGetConditionList = (index) =>
  request({
    method: "GET",
    url: `/condition/${index}`,
  }); */

/* // 搜索条件女
export const reqGetScreenWomen = () =>
  request({
    method: "GET",
    url: `/screenSearchWomen`,
  });

// 搜索条件男
export const reqGetScreenMan = () =>
  request({
    method: "GET",
    url: `/screenSearchMan`,
  }); */
  export const reqGetCityList = () =>
  request({
    method: "GET",
    url: "/userBaseInfo",
  });

  //注册提交个人信息
  export const reqSumbitInfo = (data)=>
    request ({
      method:"POST",
      url:'/toHome',
      data
    })
  //登录提交个人信息
  export const reqtoIndex = (data)=>
    request ({
      method:"POST",
      url:'/toIndex',
      data
    })
  